/*
 * $Id: CfgSweepProperties.java,v 1.4 2009/07/24 18:27:41 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.database.pojo;

import com.ge.healthcare.autosc.common.ASCUtil;

/**
 * CfgSweepProperties entity. @author MyEclipse Persistence Tools
 */
public class CfgSweepProperties extends AbstractCfgSweepProperties implements
		java.io.Serializable {

	// Constructors

	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 2050311438943044090L;

	/** default constructor */
	public CfgSweepProperties() {
	}

	public boolean equals(CfgSweepProperties sweepProperties) {
		if (ASCUtil.isNullOrEmptyObject(sweepProperties)) {
			return false;
		}
		if (this.getPropName().equals(sweepProperties.getPropName())
				&& this.getPropValue().equals(sweepProperties.getPropValue())
				&& this.getSweepPropId().equals(
						sweepProperties.getSweepPropId())) {
			return true;
		}
		return false;
	}

	public String toString() {
		StringBuffer definition = new StringBuffer();
		definition.append("{Sweep Property Id=").append(this.getSweepPropId())
				.append("},");
		definition.append("{Property Name=").append(this.getPropName()).append(
				"},");
		definition.append("{Property Value=").append(this.getPropValue())
				.append("}");
		return definition.toString();
	}
}
